package com.fzkj.juc.aqs;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @DESCRIPTION 主要是要看源码，从 Lock.lock 入手   AQS 就是 AbstractQueuedSynchronizer 类的简称
 */
public class AqsDemo {

    public static void main(String[] args) {
        Lock lock = new ReentrantLock();
        lock.lock(); // ReentrantLock -> NoFairSync

        lock.unlock();;
    }

}
